package cn.neusoft.neusoft_fz.mapper;

import cn.neusoft.neusoft_fz.entity.PaymentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Invoice;
import org.example.entity.Payment;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-06-25
 */
@Mapper

public interface PaymentMapper extends BaseMapper<Payment> {

    List<Payment> findPaymentsBySubstationAndTime(Map<String, Object> params);
    List<Payment> findPaymentsBySubstation(Map<String, Object> params);

    List<Invoice> betBySubstationId(@Param("subid") String subid);

    PaymentEntity getPaymentAmount(@Param("doid") String doid) ;

}
